package com.sunxu.exercise;

import java.time.LocalDate;

/**
 * ${DESCRIPTION}
 *
 * @author Sun
 * @create 2017-07-31-13:44
 */
public class Employee {
    private String name = "孙许";
    private double salary;
    private LocalDate hireDay;

    public Employee(String name, double salary, LocalDate hireDay) {
        this.name = name;
        this.salary = salary;
        this.hireDay = hireDay;
    }

    public String getName() {
        return name;
    }

    public double getSalary() {
        return salary;
    }

    public LocalDate getHireDay() {
        return hireDay;
    }

    public void raiseSalary(double byPercent) {
        double raise = salary * byPercent / 100;
        salary += raise;
    }


}
